﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Porownywarka.Interfejsy;
using Porownywarka.Sortowanie;

namespace Porownywarka
{
    class Program
    {
        static void Main(string[] args)
        {
            Random rand = new Random();
            int[] res22 = new int[9000000];

            for (int i = 0; i < 9000000; i++)
            {
                res22[i] = rand.Next(900000);
            }


            /*int[] res = (int[]) res22.Clone();

            Array.Sort(res);*/

            QuickSort<int> sort = new QuickSort<int>();
            long teraz = DateTime.Now.Ticks;
            int[] res123 = sort.Sort(res22, new object());
            long pozniej = DateTime.Now.Ticks;

            Console.WriteLine("czas {0}", (pozniej - teraz) / 10000);



            Console.ReadLine();

        }
    }
}
